package com.xiongjie.SingleLimit.service;

import com.xiongjie.SingleLimit.Interface.impl.ISingleLimitImpl;
import org.infinispan.Cache;

public class SSingleLimitService extends ISingleLimitImpl {

   final private static String BASE_URL = "http://.../...";
   private final String apiKey;

   public SSingleLimitService(String apiKey, Cache<String, String> cache) {
      super(cache);
      this.apiKey = apiKey;

      //TODO 其他初始化
   }

   @Override
   protected String getSingleLimitValue(String name) {
      //TODO 中间的操作,包括发送http请求并解析

      return "单机限流方法返回值";
   }

}
